package com.cn.auth.service.blog;


import com.cn.auth.po.blog.Blog;
import com.cn.auth.po.blog.Comment;
import com.cn.auth.po.blog.Notice;

import java.util.List;
import java.util.Map;

public interface BlogService {
	public Integer insertBlog(Blog blog);
	public List<Blog> getBlogList(Blog blog);
	public Integer getBlogListCount(Blog blog);
	public Integer updateBlog(Blog blog);
	public Integer addBlogReadCount(Integer id);
	public Integer addBlogPointsCount(Integer id);
	public Integer delteBlogById(String[] ids);
	public Blog getBlogById(Integer id);
	public Integer insertComment(Comment comment);
	public  List<Comment> getCommetByBlogId(Integer blogId);


	public  List<Map<String,Object>> getCommetList(Comment comment);
	public  Integer getCommetListCount(Comment comment);
	public  Integer insertNotice(Notice notice);
	public  List<Notice> getNoticeList(Notice notice);
	public  Integer getNoticeListCount(Notice notice);
	public  Integer deleteCommentByIds(String[] ids);
	public  Integer deleteNoticeByIds(String[] ids);
	public  Integer updateNoticeById(Notice notice);
	public  Notice getNoticeById(Integer id);
	public  Notice getNoticeTop1ByType(Integer type);
}
